package org.jeecg.modules.rooms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品规格存储表
 * </p>
 *
 * @author fendo
 * @since 2023-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ces_goods_specs")
public class CesGoodsSpecs extends Model<CesGoodsSpecs> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 酒店ID
     */
    private String hotelId;

    /**
     * 商品ID
     */
    private String goodId;

    /**
     * 规格名称
     */
    private String name;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 创建时间
     */
    @TableField("createAt")
    private LocalDateTime createAt;

    /**
     * 修改时间
     */
    @TableField("updateAt")
    private LocalDateTime updateAt;

    /**
     * 逻辑删除字段
     */
    private Boolean invalid;


    public static final String ID = "id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String GOOD_ID = "good_id";

    public static final String NAME = "name";

    public static final String PRICE = "price";

    public static final String CREATEAT = "createAt";

    public static final String UPDATEAT = "updateAt";

    public static final String INVALID = "invalid";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
